@extends('pc.v3.layouts.newapp')
@push('styles')
  <link rel="stylesheet" href="{{web_static('pc/v3/css/sitemap.min.css',true)}}"/>
@endpush
@section('content')
  <div class="siteMap-nav">
    <div class="siteMap-nav-con"><a href="{{url('/')}}">首页</a><span></span><a href="{{seo_url('sitemap')}}" class="col">网站地图</a></div>
  </div>
  <div class="siteMap-content">
    <div class="siteMap-content-text">
      <h2><a href="{{$zufang_url->withRoute('zufang')->toString()}}">我要租房子</a></h2>
      <ul class="area">
        <li class="active">区域</li>
        <li>商圈</li>
        <li>方式</li>
        <li>价格</li>
        <li>朝向</li>
        <li>户型</li>
        <li>面积</li>
        <li>特色</li>
      </ul>
      <div class="area-con">
        <div class="area01 box-con">
          @if(is_array($cityDistrictItems))
            @foreach($cityDistrictItems as $item)<a href="{{$zufang_url->withRoute('zufang')->withDistrict($item->spell)->withBusinessCircle()->withPage()->toString()}}">{{$item->townName}}租房信息</a>
            @endforeach
          @endif
        </div>
        <div class="box-con">
          @if(is_array($cityBusinessCircleItems))
            @foreach($cityBusinessCircleItems as $item)<a href="{{$zufang_url->withRoute('zufang')->withDistrict($item->townSpell)->withBusinessCircle($item->spell)->withPage()->toString()}}">{{$item->circleName}}租房</a>
            @endforeach
          @endif
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\RentalType::items() as $item)<a href="{{$zufang_url->withRoute('zufang')->withRentalType($item['short_name'])->withPage()->toString()}}">{{$item['name']}}房</a>
          @endforeach
        </div>
        <div class="box-con">
          @php $Instance = \Common\Define\Param\RentPrice::getCityRentPrice($city); @endphp
          @foreach ($Instance::items() as $item)<a href="{{$zufang_url->withRoute('zufang')->withRentPrice($item['short_name'])->withCustomPrice()->withPage()->toString()}}">{{$item['name']}}</a>
          @endforeach
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\HouseDirection::items() as $item)<a href="{{$zufang_url->withRoute('zufang')->withHouseDirection($item['short_name'])->withPage()->toString()}}">{{$item['name']}}的房子</a>
          @endforeach
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\HouseType::items() as $item)<a href="{{$zufang_url->withRoute('zufang')->withHouseType($item['short_name'])->withPage()->toString()}}">{{$item['seo_name']}}</a>
          @endforeach
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\HouseSize::items() as $item)<a href="{{$zufang_url->withRoute('zufang')->withHouseSize($item['short_name'])->withPage()->toString()}}">{{$item['name']}}</a>
          @endforeach
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\HouseFeature::items() as $item)<a href="{{seo_url('zufang/fs2'.$item['short_name'])}}">{{$item['seo_name']}}</a>
          @endforeach
        </div>
      </div>
      <h2><a href="{{$ditie_url->withRoute('ditie')->toString()}}">地铁沿线租房</a></h2>
      <ul class="link">
        @if(is_array($cityMetroLineItems))
          @foreach($cityMetroLineItems as $item)
            <li class="@if($loop->index == 0) active @endif"><a href="{{$ditie_url->withRoute('ditie')->withLine($item->traffic_name)->withStation()->withPage()->toString()}}" class="@if($loop->index == 0) active @endif">{{$item->traffic_name}}地铁租房</a></li>
          @endforeach
        @endif
        <li>方式</li>
        <li>价格</li>
        <li>朝向</li>
        <li>户型</li>
        <li>面积</li>
        <li>特色</li>
      </ul>
      <div class="link-con">
        @if(is_array($cityMetroLineItems))
          @foreach($cityMetroLineItems as $item)
            <div class="box-con @if($loop->index == 0) link01 @endif">
              @foreach($item->stationList as $station)<a href="{{$ditie_url->withRoute('ditie')->withLine($item->traffic_name)->withStation($station->short_id)->withPage()->toString()}}">{{$station->station_name}}地铁租房</a>
              @endforeach
            </div>
          @endforeach
        @endif
        <div class="box-con">
          @foreach (\Common\Define\Param\RentalType::items() as $item)<a href="{{$ditie_url->withRoute('ditie')->withRentalType($item['short_name'])->withPage()->toString()}}">{{$item['name']}}房</a>
          @endforeach
        </div>
        <div class="box-con">
          @php $Instance = \Common\Define\Param\RentPrice::getCityRentPrice($city); @endphp
          @foreach ($Instance::items() as $item)<a href="{{$ditie_url->withRoute('ditie')->withRentPrice($item['short_name'])->withCustomPrice()->withPage()->toString()}}">{{$item['name']}}</a>
          @endforeach
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\HouseDirection::items() as $item)<a href="{{$ditie_url->withRoute('ditie')->withHouseDirection($item['short_name'])->withPage()->toString()}}">{{$item['name']}}的房子</a>
          @endforeach
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\HouseType::items() as $item)<a href="{{$ditie_url->withRoute('ditie')->withHouseType($item['short_name'])->withPage()->toString()}}">{{$item['seo_name']}}</a>
          @endforeach
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\HouseSize::items() as $item)<a href="{{$ditie_url->withRoute('ditie')->withHouseSize($item['short_name'])->withPage()->toString()}}">{{$item['name']}}</a>
          @endforeach
        </div>
        <div class="box-con">
          @foreach (\Common\Define\Param\HouseFeature::items() as $item)<a href="{{seo_url('ditie/fs2'.$item['short_name'])}}">{{$item['seo_name']}}</a>
          @endforeach
        </div>
      </div>
      <h2><a href="{{seo_url('blog')}}">租房社区</a></h2>
      <ul class="com">
        @foreach (\Common\Define\View\WebBlogChannel::items() as $item)
          @if($item['channel'] == 0) @continue @endif
          <li><a href="{{seo_url($item['url'])}}">{{$item['name']}}</a></li>
        @endforeach
      </ul>
    </div>
  </div>
@endsection
@push('scripts')
  <script src="{{web_static('pc/v3/js/sitemap.min.js',true)}}"></script>
@endpush